import type { RoleList } from "./roleModels";

export interface UserItem {
  id?: string;
  gmtCreate?: string;
  gmtModified?: string;
  username: string;
  password: string;
  nickName: string;
  roleName?: string;
}

export type UserList = UserItem[];

export interface GetUserListResponse {
  total: number;
  items: UserList;
}

export interface GetUserListParams {
  username: string;
  nickName: string;
  page: number;
  limit: number;
}

export interface GetRoleByUserIdResponse {
  assignRoles: RoleList;
  allRolesList: RoleList;
}

export interface UserData {
  userId: string;
  roleIdList: string[];
  username: string;
}
